package cn.wolfcode.ssm.mapper;

import cn.wolfcode.ssm.domain.Role;
import cn.wolfcode.ssm.query.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RoleMapper {
    void insert(Role role);

    void updateByPrimaryKey(Role role);

    void deleteByPrimaryKey(Long id);

    Role selectByPrimaryKey(Long id);

    List<Role> selectAll();

    List<Role> list(QueryObject qo);

    List<Role> selectedByEmpId(Long id);

    void insertReslation(@Param("rId") Long rId, @Param("pId") Long pId);

    void deleteReslation(Long id);


}